//
//  MGFaceIDNetwork.h
//  ProjectFirst
//
//  Created by luowei on 2018/10/22.
//  Copyright © 2018年 APICloud. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

typedef void(^RequestSuccess)(NSInteger statusCode, NSDictionary* responseObject);
typedef void(^RequestFailure)(NSInteger statusCode, NSError* error);
NS_ASSUME_NONNULL_BEGIN

@interface MGFaceIDNetwork : NSObject
+ (MGFaceIDNetwork *)singleton;


- (void)queryMGFaceIDAntiSpoofingBizTokenWithUUID:(NSString *)uuidStr imageRef:(UIImage * __nullable)imageRef1 liveConfig:(NSDictionary *)liveInfo success:(RequestSuccess)successBlock failure:(RequestFailure)failureBlock withIDCardName:(NSString *)idCardName withIDCardNumber:(NSString *)idCardNumber apiKey:(NSString*)apiKey apiSecret:(NSString*)apiSecret;

- (void)queryMGFaceIDAntiSpoofingVerifyWithBizToken:(NSString *)bizTokenStr verify:(NSData *)megliveData success:(RequestSuccess)successBlock failure :(RequestFailure)failureBlock apiKey:(NSString*)apiKey apiSecret:(NSString*)apiSecret;
@end

NS_ASSUME_NONNULL_END
